package cn.lxinet.lxms.system.mapper;

import cn.lxinet.lxms.framework.mybatis.mapper.BaseMapper;
import cn.lxinet.lxms.system.entity.SysUserPost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

@Mapper
public interface SysUserPostMapper extends BaseMapper<SysUserPost> {

    Set<Long> listPostIdsByUserId(Long userId);

    void deleteByUserIdAndPostId(@Param("userId") Long userId, @Param("postId") Long postId);
}
